package cn.hxzy.springbootmysql.repository;

import cn.hxzy.springbootmysql.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface UserRepository extends JpaRepository<User, Integer> {
    User findByNameLike (String name) ;
    User readByName (String name) ;
    List<User> getByCreateTimeLessThan(Date star);

}
